//请求的接口配置
// console.log('process------',process.env);
let api=process.env.VUE_APP_BASE_API;

const base ={
    host:'http://localhost:9898',
    // homeCount:api+'/home/dataCount',//首页数据统计顶部
    homeCount:api+'/home/dataCount',//首页数据统计顶部
    homeFormat:api+'/home/format',//首页折现图
    homeOrder:api+'/home/orderinfo',//首页今日订单
    //产品管理接口
    goodsList:api+'/goods/projectList',//商品列表
    goodsSearch:api+'/goods/search',//商品查询接口
    deleteGoods:api+"/goods/deleteItemById",//删除商品id
    goodsItemCategory:api+"/goods/itemCategory/selectItemCategoryByParentId",//商品添加类目选择
    addGoods:api+"/goods/item/insertTbItem",//商品添加地址
    changeGoods:api+"/goods/item/updateTbItem",//商品修改
    batchDelete:api+"/goods/batchDelete",//批量删除商品
    //富文本图片上传接口
    batchUpload:api+"/batchUpload",
    // /产品分类
    itemCategory:api+"/itemCategory",
    insertCategory:api+"/itemCategory/insertCategory",//一级类目
    updateCategory:api+"/itemCategory/updateCategory",//一级分类修改
    deleteContentCategoryById:api+"/content/deleteContentCategoryById",//删除类目
    insertItemCategory:api+"/itemCategory/insertItemCategory",//新增子类目录

    //登录接口
    login:api+"/login",//登录接口 user pwd
    permission:api+"/permission",//用户权限---token 

    // login:api+"/login",//登录接口 user pwd
    // permission:api+"/permission",//用户权限---token 

    //广告分类
    getAdvertlist:"",

}

//导出单个文件
// process.env.NODE_ENV=='production'?
// export const host='http://localhost:9898'
export const hosts='http://1.14.75.85:9898'

//导出图片地址
export const uploadUrl='http://1.14.75.85:9898/upload'

//导出wangEditor图片
export const batchUpload="http://1.14.75.85:9898/batchUpload"

export default base